package com.wgy.day13.Anonymous匿名对象;

public class Demo09Array对象 {
    public static void main(String[] args) {
        Person1[] array=new Person1[3];
        Person1 one=new Person1("迪丽热巴",20);
        Person1 two =new Person1("古力娜扎",18);
        Person1 three =new Person1(" 热尔马扎",19);
        array[0]=one;
        array[1]=two;
        array[2]=three;
        System.out.println(array[0]);
        System.out.println(array[1]);
        System.out.println(array[2]);
        System.out.println("=============");
        System.out.println(array[0].getName());
    }






}
